const db = require('../../middleware/db')
const Sequelize = require('sequelize')

module.exports = sys_address = db.define('sys_address', {
    name: {
        type: Sequelize.STRING(50),
        allowNull: false,
        defaultValue: '',
    },
    type: {
        type: Sequelize.INTEGER(2),
        allowNull: false,
        defaultValue: 0,
    },
    parent_id: {
        type: Sequelize.INTEGER(8).UNSIGNED,
        allowNull: false,
        defaultValue: '0',
    },
})

// sys_address.sync({ force: true })